<template>
	<view class="abslrtb flex-column a-center wrap">
		<u-navbar :is-back="false" :title="title" :border-bottom="false"></u-navbar>
		<view class="topbox flex-column aj-center">
			<image class="logoimg" src="/static/logo.png" mode=""></image>
		</view>

		<view class="form">
			<view class="flex a-center form-item">
				<view class="label">
					<text>手机号</text>
				</view>
				<image class="label_icon" src="/static/images/icon_phone.png" mode=""></image>
				<view class="label_fgs"></view>
				<view class="flex-1">
					<input placeholder-class="placeholder" class="qui-input" type="text" value=""
						placeholder="请输入手机号" />
				</view>
			</view>
			<view class="flex a-center form-item">
				<view class="label">
					<text>验证码</text>
				</view>
				<image class="label_icon" src="/static/images/icon_code.png" mode=""></image>
				<view class="label_fgs"></view>
				<view class="flex-1">
					<input placeholder-class="placeholder" :password="password" class="qui-input" type="text" value=""
						placeholder="请输入验证码" />
				</view>
				<view>
					<text style="opacity: 0.8;" class="fs28 ptb20 main-color yzm">获取验证码</text>
				</view>
			</view>
			<view class="flex a-center form-item">
				<view class="label">
					<text>新密码</text>
				</view>
				<image class="label_icon" src="/static/images/icon_pw.png" mode=""></image>
				<view class="label_fgs"></view>
				<view class="flex-1">
					<input :password="password" placeholder-class="placeholder" class="qui-input" type="text" value=""
						placeholder="请输入新密码" />
				</view>
			</view>
		</view>
		<view class="btns">
			<view class="qbtn">
				<!-- <text class="btn-text-color fs30">确认</text> -->
				<u-button class="btn-text-color fs30" :custom-style="{backgroundColor: this.$store.state.vuex_themeColor,color: '#ffffff'}">确认</u-button>
			</view>
			<view class="flex ptb30 mlr20 aj-center">
				<view @click="goLogin()" class="">
					<text class="fs26 nav-text-color underline">返回登录</text>
				</view>
			</view>
		</view>

		<view class="bottom">

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				password: true
			}
		},
		computed: {
			title() {
				return '忘记密码'
			}
		},
		methods: {
			goLogin() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	$boxWidth:640rpx;
	$mainColor: #993cd8;
	
	// 相对父级-宽高100%
	.abslrtb {
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
	}
	
	.a-center {
		align-items: center;
	}
	
	.j-center {
		justify-content: center;
	}
	
	.aj-center {
		align-items: center !important;
		justify-content: center;
	}
	
	.flex {
		/* #ifndef APP-NVUE */
		display: flex;
		box-sizing: border-box;
		/* #endif */
		flex-direction: row;
	}
	
	.flex-column {
		/* #ifndef APP-NVUE */
		display: flex;
		box-sizing: border-box;
		/* #endif */
		flex-direction: column;
	}
	
	.flex-1,
	.flex-item {
		flex: 1;
	}
	
	.flex-2 {
		flex: 2;
	}
	
	.space-between {
		justify-content: space-between;
	}
	
	.qui-input {
		font-size: 30rpx;
		background-color: rgba(255, 255, 255, 0);
		height: rem(60) !important;
		line-height: rem(60);
	}
	
	.flex-column {
		/* #ifndef APP-NVUE */
		display: flex;
		box-sizing: border-box;
		/* #endif */
		flex-direction: column;
	}

	.wrap {
		background-color: #ffffff;

	}

	.logoimg {
		width: 160rpx;
		height: 160rpx;
		border-radius: 50%;
		margin-top: 100rpx;
		// display: none;
	}

	.placeholder {
		color: #999999;
	}

	.main-color {
		color: $mainColor;
	}

	.underline {
		text-decoration: underline;
	}

	.tabs {
		width: $boxWidth;
		height: 100rpx;
	}

	.btns {
		width: $boxWidth;
		margin-top: 80rpx;
	}

	// .qbtn {
	// 	height: 90rpx;
	// 	border-radius: 10rpx;
	// 	background-color: $mainColor;
	// 	/* #ifndef APP-NVUE */
	// 	display: flex;
	// 	/* #endif */
	// 	align-items: center;
	// 	justify-content: center;
	// 	// box-shadow: 0 1px 0 2px rgba(0,0,0,0.05);
	// }

	.btn-text-color {
		color: #ffffff;
	}

	.nav-text-color {
		color: #999999;
	}

	.label {
		font-size: 28rpx;
		width: 120rpx;
		// display: none;
	}

	.label_icon {
		width: 38rpx;
		height: 38rpx;
		margin-right: 30rpx;
		display: none;
	}

	.label_fgs {
		height: 36rpx;
		width: 1px;
		border-left: 1px solid #E5E5E5;
		margin-right: 30rpx;
		// display: none;
	}

	.topbox {
		width: 100%;
		height: 400rpx;
		// background-color: $mainColor;
		// background-image: url(/static/images/bg06.png);
		// background-repeat: no-repeat;

		background-size: 100%;
	}

	.form {
		width: $boxWidth;
		// margin-top: 100rpx;
	}

	.form-item {
		padding: 20rpx 30rpx;
		// border-bottom: 1px solid #eee;
		background-color: #f2f2f2;
		margin-bottom: 20rpx;
		border-radius: 4px;
	}

	.tabs .flex-1 {
		position: relative;
	}

	.tabs .flex-1::before {
		content: "";
		position: absolute;
		bottom: 0;
		width: 280rpx;
		height: 3rpx;
		border-radius: 4rpx;
		background-color: #eeeeee;
	}

	.active {
		position: relative;
	}

	.active::after {
		content: "";
		position: absolute;
		bottom: 0;
		width: 280rpx;
		height: 3rpx;
		border-radius: 4rpx;
		background-color: $mainColor;
	}

	.curtext {
		color: $mainColor;
	}

	.yzm {
		background-color: #cacaca;
		color: #ffffff;
		padding-left: 20rpx;
		padding-right: 20rpx;
		border-radius: 6rpx;
		margin-right: -20rpx;
	}
</style>
